﻿<!DOCTYPE html>

<html>

<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>

    <link href="~/Content/UserLayoutPage.css" rel="stylesheet" />
    <link href="~/Content/Controll.css" rel="stylesheet" />

    
    @* Script & css  slideshow *@
    <script src="~/Script/Slideshow/jquery-1.4.2.js"></script>
    <script type="text/javascript">
        $(document).ready( function()
        {
            $("#Open-Form-logOut").click( function(){      $("#Form-logOut").show(1500)    });
            $("#Form-logOut").mouseleave(function () { $("#Form-logOut").hide(1500) });
            $("#LoginBox").mouseleave(function () { $("#Dim").fadeOut(300); $("#LoginBox").fadeOut(300); });
        });
    </script>
</head>
<body>

    <div class="main">
        <div class="header">
            <div class="head-logo"></div>
            
            @*Login*@
            @Html.Partial("Login_PartialView")

            <div class="head-right">
                <h1>Dịch vụ cho thuê xe Ô tô chuyên nghiệp</h1>
                <h2 style="margin-top:0px">Giá rẻ - Uy Tín - Chất Lượng </h2>
                <h3>Hotline : 0123456789 - 0909777999</h3>
            </div>
            <div class="SearchBox" style="height: auto; width: 58%; padding:0 0 10px 0;color: #676767; font-size: 13px; font-weight: bolder; font-family: Arial;margin:0px 0 0 410px ;">
                @using (Html.BeginForm("SearchNomarl", "Search", FormMethod.Post))
                {
                    <table>
                        <tr>
                            <td>
                                Tìm Xe &nbsp;: &nbsp;&nbsp;
                                @*<input id="SeachText" type="text" class="Textbox" placeholder="Nhập thông tin xe cần tìm" style="width:280px" />*@
                                @Html.TextBox("SearchString", null, new { @class = "Textbox", style = "width:280px", placeholder = "Nhập thông tin xe cần tìm" })
                            </td>

                            <td><input id="SearchButton" type="submit" value="" title="Tìm Xe" style="background: url('../Images/UserDesign/search_button.png') 2px -4px; width: 50px; height: 27px; border: none; cursor: pointer; border-radius: 4px;  margin: 2px 0 0 0px;" /></td>
                        </tr>
                    </table>
                }
            </div>   
        </div>
        
    @*  Menu Ngang *@
        @Html.Partial("MenuPartialView")       
        
    @* Slide Show *@
        @Html.Partial("SlidePartialView") 

    @* slide show   *@
        <div class="mainContent">
            <div class="ContentLeft">
            
            @* Thương hiệu xe*@
                @Html.Partial("ThuongHieuPartialView")         
            
            @* Dịch vụ*@
                @Html.Partial("DichVuPartialView")         

            @* Tìm kiếm nâng cao*@
                <div class="ContentLeft-child">
                    <div class="ContentLeft-child-head">Tìm kiếm</div>
                    <div class="ContentLeft-child-body" style="line-height: 25px; padding: 50px 10px 0 10px;  ">
                        @using (Html.BeginForm("SearchAdvance", "Search", FormMethod.Post))
                        {                          
                            <table style="padding:5px 0 10px 0">
                                <tr>
                                    <td>Tên Xe</td>
                                    <td>
                                        @Html.TextBox("Search_TenXe", null, new { @class = "Textbox", style = "width:160px", placeholder = "Nhập Tên xe muốn tìm ....." })
                                    </td>
                                </tr>
                                <tr>
                                    <td>Hiệu Xe</td>
                                    <td>                                   
                                        @{
                                            Project_2._2.Models.QuanLyThueXeEntities db = new Project_2._2.Models.QuanLyThueXeEntities();
                                            var thuonghieu = from p in db.ThuongHieux select p;
                                            
                                            List<SelectListItem> itemThuongHieu = new List<SelectListItem>();
                                            itemThuongHieu.Add(new SelectListItem { Text = " -- Chọn Thương Hiệu -- " });
                                            foreach (var item in thuonghieu)
                                            {
                                                itemThuongHieu.Add(new SelectListItem { Text = item.TenThuongHieu, Value = Convert.ToString(item.ThuongHieuId) });
                                            }
                                            
                                        }                                      
                                        @Html.DropDownList("Search_HieuXe", itemThuongHieu, new { @class = "select", style = "width:170px" })
                                    </td>
                                </tr>
                                <tr>
                                    <td>Loại Xe</td>
                                    <td>
                                        @{
                                            var loaixe = from p in db.LoaiXes select p;

                                            List<SelectListItem> itemLoaiXe = new List<SelectListItem>();
                                            itemLoaiXe.Add(new SelectListItem { Text = " ------  Chọn Loại Xe ------ " });
                                            foreach (var item in loaixe)
                                            {                                         
                                                itemLoaiXe.Add(new SelectListItem { Text = item.TenLoaiXe, Value = Convert.ToString(item.LoaiXeId) });
                                            }
                                        }
                                        @Html.DropDownList("Search_LoaiXe", itemLoaiXe, new { @class = "select", style = "width:170px" })
                                    </td>                                   
                                </tr>
                                <tr>
                                    <td>Giá từ</td>
                                    <td>
                                        @Html.TextBox("Search_PriceFrom", null, new { @class = "Textbox", style = "width:160px" })
                                    </td>
                                </tr>
                                <tr>
                                    <td>Đến</td>
                                    <td>
                                        @Html.TextBox("Search_PriceTo", null, new { @class = "Textbox", style = "width:160px" })
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <input type="submit" class="Button" style="width:160px; margin-top:5px" value="Tìm Kiếm" />
                                    </td>
                                </tr>
                            </table>
                        }                       
                    </div>
                </div>
    
            @* hỗ trợ online *@
                <div class="ContentLeft-child">
                    <div class="ContentLeft-child-head">Hỗ Trợ Online</div>
                    <div class="ContentLeft-child-body" style="line-height: 25px; padding: 50px 10px 0 10px; text-align:center ">
                        Phòng Kinh Doanh
                        <a href="ymsgr:sendIM?nguyenhoanghaitn_2012@yahoo.com"><img border="0" src="http://opi.yahoo.com/online?u=nguyenhoanghaitn_2012@yahoo.com&m=g&t=14&l=us"></a>
                        
                        <script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script>
                        <div id="SkypeButton_Call_nguyenhoanghaitn_2012_1">
                            <script type="text/javascript">
                                Skype.ui({
                                    "name": "call",
                                    "element": "SkypeButton_Call_nguyenhoanghaitn_2012_1",
                                    "participants": ["nguyenhoanghaitn_2012"]
                                });
                            </script>
                        </div>
                    </div>
                </div>

            </div>
    @* Content Right *@
            <div class="ContentRight">
                @RenderBody()
            </div>
            <div style="clear:both"></div>
        </div>
        
        <div class="footer">
            Project 2.2 Website Thuê Xe Du Lịch <br />
            Design by Nhóm 2
        </div>
    </div>
    
    <!-- Lên đầu trang -->
    @Html.Partial("GoToTopPartialView")    
    
    @*  Quảng cáo*@
    @Html.Partial("AdvPartialView")
    
        
</body>
</html>